package com.yonyou.pmclouds.basecom.bp.processor;

import com.yonyou.pmclouds.basecom.entity.SuperVO;
import com.yonyou.pmclouds.basecom.exception.BusinessException;
import com.yonyou.pmclouds.task.rmiitf.TaskRemoteService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * 移动端待办通用生成规则
 * 
 * @version pm_cloud
 * @author zhangwce
 * @time 2017年11月14日 下午4:39:54
 */
@Component
public class MobileTaskInsertProcessor<T extends SuperVO>  implements SingleProcessor<T> {
	@Autowired
	private TaskRemoteService taskService;
	
	@Override
	public void process(T vo, T orig) throws BusinessException {
        // 保存待办
        taskService.insertWithBuziVO(vo, null);
	}

}
